
import Relay from "react-relay";
export default class saveIMG extends Relay.Mutation {

    getMutation() {
        return Relay.QL`mutation { saveIMG }`;
    }

    getVariables() {
        return {
            argsInput: {
                pdId:this.props.pdId,
                imgJSON:this.props.imgJSON
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on saveIMGPayload {
            clientMutationId
            responseData {
                proDigestModel{
                    imgJSON
                }
             }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL` fragment on saveIMGPayload  {
                    clientMutationId
                   responseData {
                    authorityId
                    totalResult
                    token
                    proDigestModel{
                         imgJSON
                     }
             }
                 }
            `]
        }];
    }

}
/**
 * Created by yoyoyk on 2017/5/9.
 */
